import http from "@/api/axios";
// 预报下单
export const getListApi = (data: ClientAdvanceManagement.SearchForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizPreOrder/selectBypage",
    data
  });
};
// 预报单详情
export const getDetailsApi = (id: string) => {
  return http({
    method: "get",
    url: `/base/biz/bizPreOrder/selectPreOrderById/${id}`
  });
};
// 取消预报
export const cancelOrderApi = (data: { preOrderId: string; shipmentIdList: Array<string> }) => {
  return http({
    method: "post",
    url: `/base/biz/bizPreOrder/cancleBizPreOrder`,
    data
  });
};
// 更新预报详情
export const updateInfoApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `/base/biz/bizPreOrder/updatePreOrderDetail`,
    data
  });
};
// 标签页状态数据统计
export const getPageStaticApi = (data: ClientAdvanceManagement.SearchForm) => {
  return http({
    method: "post",
    url: `/base/biz/bizPreOrder/selectPreOrderCount`,
    data
  });
};
// 取消预报
export const cancelAdvanceApi = (data: { preOrderId: string; shipmentIdList: Array<string> }) => {
  return http({
    method: "post",
    url: `/base/biz/bizPreOrder/cancleBizPreOrder`,
    data
  });
};
